package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.Archives;
import cn.stylefeng.guns.sys.modular.system.entity.BtyReemploy;
import cn.stylefeng.guns.sys.modular.system.model.params.ArchivesParam;
import cn.stylefeng.guns.sys.modular.system.model.result.ArchivesResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yxc
 * @since 2021-05-13
 */
public interface ArchivesMapper extends BaseMapper<Archives> {

    /**
     * 获取列表
     *
     * @author yxc
     * @Date 2021-05-13
     */
    List<ArchivesResult> customList(@Param("paramCondition") ArchivesParam paramCondition);

    /**
     * 获取map列表
     *
     * @author yxc
     * @Date 2021-05-13
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ArchivesParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author yxc
     * @Date 2021-05-13
     */
    Page<ArchivesResult> customPageList(@Param("page") Page page, @Param("paramCondition") ArchivesParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author yxc
     * @Date 2021-05-13
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ArchivesParam paramCondition);

    /**
     * 假删除
     * @param param
     */
    int update(ArchivesParam param);

    /**
     * 根据身份证号和手机号获取离职人员集合
     *
     * @param reemploys 入职员工信息集合
     */
    List<ArchivesResult> getLeaveEmpList(@Param("reemployIds") List<BtyReemploy> reemploys);

    List<ArchivesResult> listExport();
}
